package org.ladybug.service.impl;

import org.apache.commons.lang.RandomStringUtils;
import org.ladybug.web.controller.model.ModelApplicativo;

import test.AbstractLadybugTest;

public class ApplicativoCommandServiceTest extends AbstractLadybugTest {
	ApplicativoCommandService applicativoCommandService;
	public void testDelete() {
		fail("Not yet implemented");
	}

	public void testInsertOrUpdate() throws Exception {
		ModelApplicativo ac = new ModelApplicativo();
		ac.setCodiceApplicativo(RandomStringUtils.randomAlphanumeric(6).toUpperCase());
		ac.setDescrizione("Prova");
		applicativoCommandService.insertOrUpdate(ac, null);
		
	}

	public ApplicativoCommandService getApplicativoCommandService() {
		return applicativoCommandService;
	}

	public void setApplicativoCommandService(
			ApplicativoCommandService applicativoCommandService) {
		this.applicativoCommandService = applicativoCommandService;
	}

}
